package nodes;

import nodes.body.BlockBodyNode;
import nodes.declarations.DeclarationListNode;
import visitors.Visitor;

public final class ProgramNode extends Node
{
    public DeclarationListNode decl;
    public BlockBodyNode body;

    public ProgramNode(DeclarationListNode decl, BlockBodyNode body)
    {
        this.decl = decl;
        this.body = body;
    }

    @Override
    public Object accept(Visitor v)
    {
        return v.visit(this);
    }
}